import request from "@/utils/request";
// 个人中心数据
export function mineHomepageData(query) {
  return request({
    url: "/school/teacher/mine/homepageData",
    method: "get",
    params: query,
  });
}
// 教学质量分析
export function analytic(query) {
  return request({
    url: "/school/teacher/mine/analytic",
    method: "get",
    params: query,
  });
}
// 修改教学质量分析
export function updateAnalytic(data) {
  return request({
    url: "/school/teacher/mine/updateAnalytic",
    method: "post",
    data: data,
  });
}
// 获取班级列表
export function getClassList(query) {
  return request({
    url: "/school/teacher/mine/getClassList",
    method: "get",
    params: query,
  });
}
// 学生成绩详情
export function gradesInfo(query) {
  return request({
    url: '/school/teacher/mine/gradesInfo',
    method: 'get',
    params: query,
  })
}
// 学生成绩列表
export function gradesList(query) {
  return request({
    url: "/school/teacher/mine/gradesList",
    method: "get",
    params: query,
  });
}
// 根据课程ID查询班级列表
export function getclassListBycourseId(courseId,params) {
  return request({
    url: `/school/manager/course/getClassListByCourseId/${courseId}`,
    method: "get",
    params:params
  });
}
// 学生终端登录数据
export function stuLoginData(params) {
  return request({
    url: "/school/manager/account/stuLoginData",
    method: "get",
    params: params,
  });
}

// 教师终端登录数据
export function teacherLoginData(params) {
  return request({
    url: "/school/manager/account/teacherLoginData",
    method: "get",
    params: params,
  });
}
// 管理终端登录数据
export function managerLoginData(params) {
  return request({
    url: "/school/manager/account/managerLoginData",
    method: "get",
    params: params,
  });
}

// 课程平均进度
export function courseLearningProgress(params) {
  return request({
    url: "/school/statistics/system/courseLearningProgress",
    method: "get",
    params: params,
  });
}

// 数据统计
export function educationResourceStatistics(params) {
  return request({
    url: "/school/statistics/system/educationResourceStatistics",
    method: "get",
    params: params,
  });
}

// 重修学生情况
export function restartStudentStatistics(params) {
  return request({
    url: "/school/statistics/system/restartStudentStatistics",
    method: "get",
    params: params,
  });
}

// 拔尖学生
export function topStudentStatistics(type, limit, params) {
  return request({
    url: `/school/statistics/system/topStudentStatistics/${type}/${limit}`,
    method: "get",
    params: params,
  });
}

// 学习预警
export function leamingWarningStatistics(params) {
  return request({
    url: `/school/statistics/system/learningWarningStatistics`,
    method: "get",
    params: params,
  });
}

// 用户登录统计
export function userLoginStatistics(day, params) {
  return request({
    url: "/school/statistics/system/userLoginStatistics/" + day,
    method: "get",
    params: params,
  });
}

// 各分院课程统计
export function branchCourseStatistics(params) {
  return request({
    url: "/school/statistics/system/branchCourseStatistics",
    method: "get",
    params: params,
  });
}

// 优秀课程统计
export function excellentCourseStatistics(params) {
  return request({
    url: "/school/statistics/system/excellentCourseStatistics",
    method: "get",
    params: params,
  });
}

// 活跃课程统计
export function activeCourseStatistics(params) {
  return request({
    url: "/school/statistics/system/activeCourseStatistics",
    method: "get",
    params: params,
  });
}
